package am.ui;

import am.bll.BookReader;
import am.core.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class BookListActivity extends Activity
{
    private static BookReader bookReader;

    public static void setBookReader(BookReader bookReader)
    {
        BookListActivity.bookReader = bookReader;
    }

    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.book_list);

        // 添加账本按钮
        Button addButton = (Button) findViewById(R.id.bl_add);
        addButton.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v)
            {
                // 跳转到bookCreate界面
                startActivity(new Intent(BookListActivity.this, BookCreateActivity.class));
            }
        });
    }
}